package com.ljw.food_order_server.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 菜单
 * </p>
 *
 * @author ljw
 * @since 2021-07-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("food")
@ApiModel(value="Food对象", description="菜单")
public class Food implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "食品id")
    @TableId(value = "food_id", type = IdType.AUTO)
    private Integer foodId;

    @ApiModelProperty(value = "食品名称")
    @TableField("food_name")
    private String foodName;

    @ApiModelProperty(value = "食品价格")
    @TableField("food_price")
    private Double foodPrice;

    @ApiModelProperty(value = "视频所处窗口")
    @TableField("window_id")
    private Integer windowId;

    @ApiModelProperty(value = "该食品的剩余数量")
    @TableField("number")
    private Integer number;


}
